#include <unistd.h>
#include <stdio.h>
#include <time.h>

int main (int argc, char *argv[]){
    struct timespec tstart,tstop,tresult;
    clock_gettime(CLOCK_MONOTONIC,&tstart);
    sleep(10);
    clock_gettime(CLOCK_MONOTONIC,&tstop);
    tresult.tv_sec =
        tstop.tv_sec - tstart.tv_sec;
    tresult.tv_usec =
        tstop.tv_nsec - tstart.tv_nsec;
    
}